package com.sttk.secreconeclick.bookkeep.bean;

public class YearlyStatisticsBean {
    private int month;          // 月份 (1-12)
    private double income;      // 收入
    private double expenditure; // 支出
    private double balance;     // 结余 (收入 - 支出)

    public YearlyStatisticsBean(int month, double income, double expenditure) {
        this.month = month;
        this.income = income;
        this.expenditure = expenditure;
        this.balance = income - expenditure;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public double getIncome() {
        return income;
    }

    public void setIncome(double income) {
        this.income = income;
        this.balance = this.income - this.expenditure;
    }

    public double getExpenditure() {
        return expenditure;
    }

    public void setExpenditure(double expenditure) {
        this.expenditure = expenditure;
        this.balance = this.income - this.expenditure;
    }

    public double getBalance() {
        return balance;
    }
}